//
//  AppFileSystem+APH.swift
//  APP
//
//  Created by Rdxer on 2017/12/23.
//  Copyright © 2017年 Rdxer. All rights reserved.
//

import UIKit

/// 获取默认的路径
extension AppFileSystem {
    
    /// documents/download 目录下 attachment 文件夹
    static let attachmentDirectory: URL = {
        let directory: URL = AppFileSystem.downloadDirectory.appendingPathComponent("Attachment")
        return directory
    }()
    
    /// 生成本地附件的文件url
    /// documents/download/Attachment/{localFileName}
    static func makeAttachmentFile(localFileName:String)->URL{
        let filePathURL: URL = AppFileSystem.attachmentDirectory.appendingPathComponent(localFileName, isDirectory:false)
        return filePathURL
    }
}
